#[derive(PartialEq, Eq)]
pub enum State {
    Start,
    Stop,
}

impl State {
    pub fn as_str(&self) -> &'static str {
        match self {
            State::Start => "开始",
            State::Stop => "停止",
        }
    }

    pub fn to_string(&self) -> String {
        self.as_str().into()
    }
}
